<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>

<head>
<base href="<%=basePath%>">
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

<title>退换货管理</title>

<link href="css/admin.css" rel="stylesheet" type="text/css">
<link href="css/amazeui.css" rel="stylesheet" type="text/css">

<link href="css/personals.css" rel="stylesheet" type="text/css">
<link href="css/orstyle.css" rel="stylesheet" type="text/css">

<script src="js/jquery.min.js"></script>
<script src="js/amazeui.js"></script>

</head>

<body>
	<!--头 -->
	<jsp:include page="common/header.jsp"></jsp:include>
	<b class="line"></b>
	<div class="center">
		<div class="col-main">
			<jsp:include page="common/user_left.jsp"></jsp:include>
			<div class="main-wrap">

				<div class="user-order">

					<!--标题 -->
					<div class="am-cf am-padding">
						<div class="am-fl am-cf">
							<strong class="am-text-danger am-text-lg">退换货管理</strong> / <small>Change</small>
						</div>
					</div>
					<hr />

					<div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

						<ul class="am-avg-sm-2 am-tabs-nav am-nav am-nav-tabs">
							<li class="am-active"><a href="#tab1">退款管理</a></li>
						</ul>

						<div class="am-tabs-bd">
							<div class="am-tab-panel am-fade am-in am-active" id="tab1">
									<div class="order-top">
										<div class="th th-item">
										<td class="td-inner">商品</td>
									</div>
									<div class="th th-price">
										<td class="td-inner">交易金额</td>
									</div>
									<div class="th th-number">
										<td class="td-inner">退款金额</td>
									</div>
									<div class="th th-operation">
										<td class="td-inner">交易状态</td>
									</div>
									<div class="th th-amount">
										<td class="td-inner">交易操作</td>
									</div>
								</div>
								
								<div class="order-main">
										<div class="order-list">
											<c:forEach items="${pageInfo.list}" var="refund">
											<div class="order-status3">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="/orders/getOrderByInfo/${refund.orderid }">${refund.order.orderno }</a></div>
													<span>
														下单时间：<fmt:formatDate value="${refund.order.createtime}" pattern="yyyy-MM-dd HH:mm:ss"/>
													</span>
													<!--    <em>店铺：小桔灯</em>-->
												</div>
												<div class="order-content">
													<div class="order-left">
														<c:forEach items="${refund.order.ogs }" var="og">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img style="width:80px;height:80px;" src="${og.goodsthums}" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="/orders/getOrderByInfo/${og.orderid }">
																			<p>${og.goodsnames}</p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	￥${refund.order.realprice }
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	￥${refund.order.realprice }
																</div>
															</li>
															<li class="td td-operation">
																<div class="item-operation">
																	<c:if test="${refund.isrefund==0 }">正在处理</c:if>
																	<c:if test="${refund.isrefund==1 }">该订单已成功退款</c:if>
																	<c:if test="${refund.isrefund==-1 }">退款申请被驳回</c:if>
																</div>
															</li>
														</ul>
														</c:forEach>
													</div>
													<div class="order-right">
														<div class="move-right">
															<li class="td td-change">
																<div onclick="javascript:location.href='/orders/getOrderByInfo/${refund.orderid }';" style="margin:5px 0px;" class="am-btn am-btn-danger anniu">
																	查看详情</div>
															</li>
														</div>
													</div>
												</div>
											</div>
											</c:forEach>
										</div>
									</div>
								
								</div>

							</div>

						</div>
					</div>

				</div>

			</div>
		</div>
		<!--底部-->
		<jsp:include page="common/footer.jsp"></jsp:include>
</body>
</html>